import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import home from '@/pages/home'
import login from '@/pages/login'
import reg from '@/pages/reg'
import mobile from '@/pages/mobile'
import news from '@/pages/news'
import activity from '@/pages/activity'
import hall from '@/pages/hall'

/**
 * 游戏
 */
import kuaisan from '@/pages/game/kuaisan'
import shishicai from '@/pages/game/shishicai'
import pk10 from '@/pages/game/pk10'
import _11xuan5 from '@/pages/game/11xuan5'
import fucai3D from '@/pages/game/fucai3D'
import _28dd from '@/pages/game/28dd'
import liuhecai from '@/pages/game/liuhecai'
/**
 * 用户中心
 */
import user from '@/pages/user/user'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/home',
      name: 'home',
      component: home
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/reg',
      name: 'reg',
      component: reg
    },
    {
      path: '/mobile',
      name: 'mobile',
      component: mobile
    },
    {
      path: '/news',
      name: 'news',
      component: news
    },
    {
      path: '/activity',
      name: 'activity',
      component: activity
    },
    {
      path: '/hall',
      name: 'hall',
      component: hall
    },
    {
      path: '/kuaisan',
      name: 'kuaisan',
      component: kuaisan
    },
    {
      path: '/shishicai',
      name: 'shishicai',
      component: shishicai
    },
    {
      path: '/pk10',
      name: 'pk10',
      component: pk10
    },
    {
      path: '/11xuan5',
      name: '11xuan5',
      component: _11xuan5
    },
    {
      path: '/fucai3D',
      name: 'fucai3D',
      component: fucai3D
    },
    {
      path: '/28dd',
      name: '28dd',
      component: _28dd
    },
    {
      path: '/liuhecai',
      name: 'liuhecai',
      component: liuhecai
    },
    //用户中心
    {
      path: '/user',
      name: 'user',
      component: user,
      children: [
        {
          path: 'HelloWorld',
          component: HelloWorld
        }
      ]
    }
  ]
})
